import antlr3
import sys
from subpavadasLexer import subpavadasLexer
from subpavadasParser import subpavadasParser

char_stream = antlr3.ANTLRInputStream(sys.stdin)
# or to parse a file:
# char_stream = antlr3.ANTLRFileStream(path_to_input)
# or to parse an opened file or any other file-like object:
# char_stream = antlr3.ANTLRInputStream(file)

lexer = subpavadasLexer(char_stream)
tokens = antlr3.CommonTokenStream(lexer)
parser = subpavadasParser(tokens)
parser.prog()
